Role of controller in MVC application